package cn.kgc.javaweb.dao;

import cn.kgc.javaweb.entity.SysUser;
import cn.kgc.javaweb.vo.UserVO;

import java.util.List;

/**
 * @author: mosin
 * @version: v1.0  2022/6/7
 */
public interface UserDao {

    SysUser selectByUsernameAndPassword(String username,String password);

    int addUser(String username, String securePassword);

    int resetPasswordById(long id, String md5);

    Long selectTotal();

    List<UserVO> queryAll(int start, int size);

    int deleteById(Integer id);

    int updatePwd(Integer id, String s);

    SysUser selectByUserName(String username);

    int addUser(SysUser user);

    int updateUser(SysUser user);

    List<SysUser> search(int start, Integer limit, String username);

    long selectTotalByUserName(String username);

    Integer updateState(String id, Integer state);
}
